(function(win, doc){
    var script = document.createElement("script");
    script.src = "{url}";
    script.async = true;
    script.defer = true;
    script.type = "text/javascript";
    doc.head.appendChild(script);
    script.onload = script.onerror = function() {
        script = null;
    };
})(window, document);
